#ifndef BLUEBALLRENDERER_H
#define BLUEBALLRENDERER_H
#include <wx/grid.h>
#include <wx/msgdlg.h>
#include <wx/gdicmn.h>
#include <wx/log.h>
#include <wx/settings.h>
#include <wx/grid.h>
#include <wx/dc.h>
#define BIGFONT   wxFont(18, wxDEFAULT, wxNORMAL, wxFONTWEIGHT_BOLD, 0, wxT("Sans"))

class BlueBallRenderer : public wxGridCellRenderer
{
    public:
        /** Default constructor */
        bool ishozi;
        BlueBallRenderer();
        BlueBallRenderer(bool ishozi);
        /** Default destructor */
//        virtual ~BlueBallRenderer();
 void Draw(wxGrid& grid, wxGridCellAttr& attr, wxDC& dc, const wxRect& rect, int row, int col, bool isSelected);
 wxGridCellRenderer *Clone() const;
 wxSize GetBestSize(wxGrid& grid,wxGridCellAttr& attr,wxDC& dc,int row, int col);
    protected:
        // set the text colours before drawing
    void SetTextColoursAndFont(const wxGrid& grid,
                               const wxGridCellAttr& attr,
                               wxDC& dc,
                               bool isSelected);
    private:
};

#endif // BLUEBALLRENDERER_H
